﻿namespace DapperLambdaSQL.Model
{
    public class SQLOptions
    {
        public DbType DbType { get; set; }
        public string DbConnectionString { get; set; }

        /// <summary>
        /// bool 类型在数据库中存储方式
        /// </summary>
        public BooleanConvertType BooleanConvertType { get; set; }
    }

    public enum BooleanConvertType
    {
        /// <summary>
        /// 1:true;0:false
        /// </summary>
        Bit_10,

        /// <summary>
        /// Y:true;N:false
        /// </summary>
        Char_YN,
    }

    public enum DbType
    {
        MySQL,
        Oracle,
        SQLServer
    }
}